<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
/*
 *  Copyright (c) 2010 Peter Lényi
 *  Licensed under The BSD License
 *
 * @author  Peter Lényi
 * @version 20100502F2
 */
%>
<fmt:bundle basename="Gui" prefix="Gui.">
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type"   content="text/html;charset=UTF-8"/>
        <meta http-equiv="pragma"         content="no-cache"/>
        <meta http-equiv="cache-control"  content="no-cache"/>
        <meta name="generator"    content="Gem File Server"/>
        <meta name="robot"        content="none"/>
        <meta name="googlebot"    content="noarchive"/>
        <%@include file="../WEB-INF/jspf/style.jsp" %>
        <title><fmt:message key="page.file.list.title" /></title>
    </head>
    <body>
        <%@include file="../WEB-INF/jspf/header.jsp" %>
        <%@include file="../WEB-INF/jspf/sitenav.jsp" %>
        <section>
            <c:if test="${not empty sessionScope.msg}">
                <article id="a0">
                    <header>
                        <h3><fmt:message key="page.msg" /></h3>
                    </header>
                    <ul>
                    <c:forEach items="${sessionScope.msg}" var="msg">
                        <li><c:out value="${msg}" /></li>
                    </c:forEach>
                    </ul>
                </article>
                <% session.removeAttribute("msg"); %>
            </c:if>
            <article id="a1">
                <header>
                    <h3><fmt:message key="page.file.list.title" /></h3>
                </header>
                <c:if test="${not empty sessionScope.filemetalist}">
                    <dl>
                        <c:forEach items="${sessionScope.filemetalist}" var="filemeta">
                            <dt><i><c:out value="${filemeta.owner}" /></i>: <c:out value="${filemeta.title}" /></dt>
                            <dd>
                                <ul>
                                    <li><a href="<c:out value="${pageContext.request.contextPath}" />/file/details/pre?uin=<c:out value="${filemeta.uin}" />"><fmt:message key="page.file.details.title" /></a></li>
                                    <li><a href="<c:out value="${pageContext.request.contextPath}" />/file/download/jsp?uin=<c:out value="${filemeta.uin}" />"><fmt:message key="page.file.download.title" /></a></li>
                                    <li><a href="<c:out value="${pageContext.request.contextPath}" />/file/update/pre?uin=<c:out value="${filemeta.uin}" />"><fmt:message key="page.file.update.title" /></a></li>
                                    <li><a href="<c:out value="${pageContext.request.contextPath}" />/file/delete/jsp?uin=<c:out value="${filemeta.uin}" />"><fmt:message key="page.file.delete.title" /></a></li>
                                </ul>
                            </dd>
                        </c:forEach>
                    </dl>
                </c:if>
            </article>
            <% request.getSession().removeAttribute("filemetalist"); %>
        </section>
        <%@include file="../WEB-INF/jspf/footer.jsp" %>
    </body>
</html>
</fmt:bundle>
